import request from '@/utils/request'
// h环境管理模块
const EnvApi = {
    Env: '/api/v1/env',
    Envcreate: '/api/v1/env/create',
    EnvModify: '/api/v1/env/modify',
    EnvDelete: '/api/v1/env/delete',
}

//获取环境列表
export const GetEnv = data => {
    return request({
        url: EnvApi.Env,
        method: 'get',
    })
}

//增加环境
export const CreateEnv = data => {
    return request({
        url: EnvApi.Envcreate,
        method: 'post',
        data: data,
    })
}

//修改环境
export const ModifyEnv = (data) => {
    return service({
        url: EnvApi.EnvModify,
        method: 'put',
        data: data
    })
}

//删除环境列表
export const deleteEnv = (data) => {
    return service({
        url: EnvApi.EnvDelete,
        method: 'delete',
        data: data
    })
}